﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200151D RID: 5405
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class WorkbenchReforgeBuffTargetInfo : IMessage<WorkbenchReforgeBuffTargetInfo>, IMessage, IEquatable<WorkbenchReforgeBuffTargetInfo>, IDeepCloneable<WorkbenchReforgeBuffTargetInfo>, IBufferMessage
	{
		// Token: 0x17004418 RID: 17432
		// (get) Token: 0x0600F1EF RID: 61935 RVA: 0x00286371 File Offset: 0x00284571
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<WorkbenchReforgeBuffTargetInfo> Parser
		{
			get
			{
				return WorkbenchReforgeBuffTargetInfo._parser;
			}
		}

		// Token: 0x17004419 RID: 17433
		// (get) Token: 0x0600F1F0 RID: 61936 RVA: 0x00286378 File Offset: 0x00284578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return WorkbenchReforgeBuffTargetInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700441A RID: 17434
		// (get) Token: 0x0600F1F1 RID: 61937 RVA: 0x0028638A File Offset: 0x0028458A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return WorkbenchReforgeBuffTargetInfo.Descriptor;
			}
		}

		// Token: 0x0600F1F2 RID: 61938 RVA: 0x00286391 File Offset: 0x00284591
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchReforgeBuffTargetInfo()
		{
		}

		// Token: 0x0600F1F3 RID: 61939 RVA: 0x00286399 File Offset: 0x00284599
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchReforgeBuffTargetInfo(WorkbenchReforgeBuffTargetInfo other) : this()
		{
			this.targetReforgeBuffId_ = other.targetReforgeBuffId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600F1F4 RID: 61940 RVA: 0x002863BE File Offset: 0x002845BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchReforgeBuffTargetInfo Clone()
		{
			return new WorkbenchReforgeBuffTargetInfo(this);
		}

		// Token: 0x1700441B RID: 17435
		// (get) Token: 0x0600F1F5 RID: 61941 RVA: 0x002863C6 File Offset: 0x002845C6
		// (set) Token: 0x0600F1F6 RID: 61942 RVA: 0x002863CE File Offset: 0x002845CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TargetReforgeBuffId
		{
			get
			{
				return this.targetReforgeBuffId_;
			}
			set
			{
				this.targetReforgeBuffId_ = value;
			}
		}

		// Token: 0x0600F1F7 RID: 61943 RVA: 0x002863D7 File Offset: 0x002845D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as WorkbenchReforgeBuffTargetInfo);
		}

		// Token: 0x0600F1F8 RID: 61944 RVA: 0x002863E5 File Offset: 0x002845E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(WorkbenchReforgeBuffTargetInfo other)
		{
			return other != null && (other == this || (this.TargetReforgeBuffId == other.TargetReforgeBuffId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600F1F9 RID: 61945 RVA: 0x00286414 File Offset: 0x00284614
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TargetReforgeBuffId != 0U)
			{
				num ^= this.TargetReforgeBuffId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600F1FA RID: 61946 RVA: 0x00286453 File Offset: 0x00284653
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600F1FB RID: 61947 RVA: 0x0028645B File Offset: 0x0028465B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600F1FC RID: 61948 RVA: 0x00286464 File Offset: 0x00284664
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TargetReforgeBuffId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.TargetReforgeBuffId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600F1FD RID: 61949 RVA: 0x00286498 File Offset: 0x00284698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TargetReforgeBuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TargetReforgeBuffId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600F1FE RID: 61950 RVA: 0x002864D6 File Offset: 0x002846D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(WorkbenchReforgeBuffTargetInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TargetReforgeBuffId != 0U)
			{
				this.TargetReforgeBuffId = other.TargetReforgeBuffId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600F1FF RID: 61951 RVA: 0x00286507 File Offset: 0x00284707
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600F200 RID: 61952 RVA: 0x00286510 File Offset: 0x00284710
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.TargetReforgeBuffId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005F7B RID: 24443
		private static readonly MessageParser<WorkbenchReforgeBuffTargetInfo> _parser = new MessageParser<WorkbenchReforgeBuffTargetInfo>(() => new WorkbenchReforgeBuffTargetInfo());

		// Token: 0x04005F7C RID: 24444
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005F7D RID: 24445
		public const int TargetReforgeBuffIdFieldNumber = 4;

		// Token: 0x04005F7E RID: 24446
		private uint targetReforgeBuffId_;
	}
}
